<h3 class="titre">RESULTATS DE VOTRE RECHERCHE : <?php echo $nb; ?> RESTAURANT(S)</h3>
<div id="listRestaurant">
    <?php foreach($pager->getResults() as $restaurant ): ?>   
       <!----->
         <div class="blockRestaurant">
             <div class="restaurantAttr">
                <div class="nameRestaurant">
                    <p class="linktitle">
                        <a href="<?php echo url_for('show_restaurant', array('id' => $restaurant->getHalalmenuRestaurant()->getId(), 'namerestaurant' => strtolower($restaurant->getHalalmenuRestaurant()->getNamerestaurant()))).'.html' ?>">
                        <?php echo strtoupper($restaurant->getHalalmenuRestaurant()->getNamerestaurant()) ?></a>  
                    </p>
                </div><br/>
                <div class="adressRestaurant">
                    <?php  echo $restaurant->getHalalmenuRestaurant()->getStreet1().' '.$restaurant->getHalalmenuRestaurant()->getZipcode().' '.ucfirst($restaurant->getHalalmenuRestaurant()->getHalalmenuCity()) ?>
                </div>
                <div class="categories" style="font-size:14px;font-style:italic;border:0px solid black;padding: 5px 0px 10px 0px;margin-top:7px">
                    <span><label style="width: 60px"> Cuisine(s): </label>
                        <?php 
                            //$cuisines = "";      
                            //foreach($restaurantInfo[$restaurant->getHalalmenuRestaurant()->getId()]['cuisine'] as $cuisine):
                            //        $cuisines = $cuisines.ucFirst($cuisine).', '; 
                            //endforeach;            
                            //$cuisines[strlen($cuisines) - 2] = '.'; 
                        //echo '<pre>'; 
                        $list = "";
                       foreach($restaurantInfo[$restaurant->getHalalmenuRestaurant()->getId()]["cuisine"] as $cuisine){
                          $list = $list.$cuisine["cuisine"].', ';
                          
                       }
                       $list[strlen($list) - 2] = ".";
                       echo ucfirst($list);
                        ?>
                    </span>
                </div>
             </div>
             <div class="restaurantStat" style="float:right;text-align:right" >
<!--                <div class="average">
                    <?php  //for($i=0;$i<5;$i++) { ?>
                        <?php //if($i < $restaurantInfo[$restaurant->getHalalmenuRestaurant()->getId()]['average']): ?>
                            <img src="/images/star-on.png" />
                        <?php //else: ?>  
                            <img src="/images/star-off.png" />
                        <?php  //endif; ?>  
                    <?php //} ?>    
                </div>-->
                <div class="avis" style="text-align:right">
                    <?php //echo $restaurantInfo[ $restaurant->getHalalmenuRestaurant()->getId() ]['nbreviews'].' Avis'; ?>    
                </div>
             </div>
         </div>
       <!----->
    <?php  endforeach; ?>
</div>